<chugga>
mattam, i did google, obviously not the same way as you
<chugga>
does it also highlight functions?
<mattam>
try google images if you want screenshots :)
<chugga>
(from that screenshot it seems it doesnt, sadly :(
<mattam>
it does
<chugga>
no look
<chugga>
string_of_int is the same colour as its argument
<chugga>
and the same colour as "variables"
<chugga>
or whtever they are called in this language
<chugga>
and "Values"
<mattam>
they're 'indistinguishable'
<chugga>
oh please!
<chugga>
i can distinguish them
<mattam>
so no it doesn't highlight function calls from variable references
<chugga>
*sigh* what about ocaml-mode.el does it?
<mattam>
oh yes ? the you parse the context
<chugga>
mattam, indeed i do
<chugga>
mattam, but isnt it a sad indictment on a language/community when it cant even arrange a decent emacs mode? Not to be trolling. but serious lamentment
<mattam>
it's a decent emacs mode
<chugga>
its synax highlighting sucks
<chugga>
i dont care about the other stuff. i can copy paste, indent, thats trivial
<Submarine>
wharf
budjet has quit [Remote closed the connection]
<mattam>
chugga: in fact there's a simple explanation why it doesn't distinguish, it would involve finding the types of variables, which means coding type reconstruction in lisp. I wonder in which language there is a distinction
araujo has left #ocaml []
<chugga>
mattam, yeah, thats what haskell says too. type system blah blah. But the c-mode works beautifully and it isnt written in C - i dont understand that argument
<mrvn_>
I'm very pleased with tuareg mode.
<chugga>
mrvn_, have you used c-mode, is it as good as that?
zzorn has joined #ocaml
<mrvn_>
tuareg is way better
<mrvn_>
c-mode sucks.
<chugga>
for what reasons? wht about syntax highlighting?
<mrvn_>
because C-mode can't indent ocaml code.
<chugga>
Oh......
<mrvn_>
or highlight ocaml keywords
<chugga>
ok, i'll give you indenting. i bet tuareg does a fine job of indenting
<chugga>
btw, i didnt mean c-mode for ocaml(?!) - i meant c mode for c
<mrvn_>
sure, c-mode for c, c++-mode for c++, latex mode for latex, tuareg for ocaml.
<chugga>
ok
<chugga>
latex mode, cant remember if that was any good, but anyway .. so apart from highlighitng language keywords
<chugga>
does t mode highlight anything else?
<mattam>
constants, module paths
<chugga>
hmm.
<mrvn_>
== <= >= <> != && || and or
smkl_ has joined #ocaml
<chugga>
isnt a function a constant?
<mrvn_>
a function is a binding like any variable
<chugga>
sorry, i dont know what a binding is
<mattam>
a constant is a 0-ary function, but i was talking about strings, chars and numbers
<chugga>
okay
<mrvn_>
true/false
<chugga>
thats an improvement on the haskell mode then
<mrvn_>
mattam: you mean literals
<mellum>
mattam: You probably meant literals.
<mattam>
sure, thanks
<chugga>
will it highlight any functions at all
<chugga>
like say head, cons etc .. what about stuff i define myself ?
<chugga>
the application of such functions?
<mattam>
nope
<chugga>
:(
<chugga>
im out of good languages too
<chugga>
dont make me go back to C, please :=/
<mattam>
that's really an unimportant thing
<chugga>
mattam, you can say that, but its really important to me that my code look pretty. i dunno why.
<mellum>
distinguishing between variables bound to functions and variables bound to other stuff would also not fit the spirit of Ocaml.
<mellum>
And highlighting *every* variable would not be terribly useful.
<chugga>
nah, i suppose it wouldnt
<chugga>
but at least functions - and their arguments
<mellum>
Well, there is basically nothing in Ocaml but keywords, functions, and arguments.
<mellum>
So this would also not be terribly useful.
<chugga>
mellum, so the mode only seems to distinguish between keywords and everything else. not a very useful distinction either
<mellum>
chugga: I think it's useful.
<chugga>
mellum, sure its better than nothing. but its not that great
<chugga>
oh and literal,s as pointed out earlier
<mellum>
After all, you cannot color variables in C either.
<mellum>
At least not without ridiculous effort, since C is not context free.
<chugga>
nah c mode doe sit
<mrvn_>
tuareg does collor variable and function assignments differently.