[nem-en] loving Nemerle
Sean L. Palmer
seanpalmer at verizon.net
Thu Oct 27 06:31:18 CEST 2005
>>Great job, keep it up, and I very much look forward to trying out the
>>indentation-based syntax in a future release. And are there plans to
>>infer types of private class methods? (cuz i'll gladly test-drive
>>that too :)
>>
>>
>
>Thanks! I'm also curious if people will find the indentation syntax
>useful in Nemerle.
>Some already tried: http://d.hatena.ne.jp/akiramei/20051020#p1
>Indeed, language have a different feel this way, though I would be a
>little bit scary about whitespaces ruling semantics of my program...
>We are planning a new release soon and this feature will be there for everybody.
>
>
I thought about this recently and it seems to be more of an IDE display
and UI issue than anything.
Think about it, why can the IDE not take code like this:
foo { bar { baz } } bam
and display it to you as you edit, like this:
foo
bar
baz
bam
but you can configure the indentation level. Or if you really like the
brackets, like this:
foo {
bar {
baz
}
}
bam
Or in fact in any other way which you find easier to edit!
When saving, it converts indentation back into brackets so that it will
compile. In fact it could be implemented as a preprocessor that
converts Nemerle embedded in HTML into raw text Nemerle. (then use a
WYSIWYG HTML editor to write code.) I am not sure why people refuse to
leave pure ascii text editors behind in the dustbin of history.
Similarly, why do people still hate HTML email?
>Yes, the inference on global level is a planned feature:
>http://nemerle.org/bugs/view.php?id=213
>And it is quite probable that Michal will implement it sooner or
>later, as this is a subtopic of his PhD studies.
>
That will be wonderful.
Keep up the good work guys. I hope to have time to play more with
Nemerle soon.
Sean
More information about the devel-en
mailing list