|
Re: xbase: LongExtensions [message #810836 is a reply to message #810801] |
Thu, 01 March 2012 15:55 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Vlad,
extensions for all primitive types are available in the 2.3 stream of
Xtext and can be consumed as milestone / nightly build.
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 01.03.12 16:19, schrieb Vlad Dumitrescu:
> Hi!
>
> I read previous posts about why the library provides extensions only for
> regular integers (it's easy to add then oneself, the language is not for
> number crunching), but I hope that I might at least make the case for
> the long integers.
>
> "long" is used here and there, most notably in
> System::currentTimeMillis(), and it's surprising that one can't do any
> math on them. The biggest problem is when one has commited to implement
> a class in Xtend and after a few hours of work one notices a glitch like
> this...
>
> LongExtensions would be a trivial search and replace: s/int/long/ and
> s/Integer/Long/ and it feels that it's something that could be included
> in the standard xbase library. Put another way, I don't like the idea
> that everybody will end up with their own copy of it in one's project.
>
> best regards,
> Vlad
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03267 seconds