Re:Scala Adding Macros to the Language
by bad_user on Sunday July 15, 2012 @10:02AM
(#4246954)
But I'm not sure how I feel about this change.
Scala can already implement things like DSLs through
creative use of type inference, etc.
The way I see it:
(-) there are some god-awful DSLs available for Scala ; the presence of a macros system would allow the reuse of syntax instead of coming up with operators that look like random noise
(-) LINQ becomes possible - I don't know how many people here used LINQ, but it's really awesome to express a query in terms of filter, map and flatMap, and depending on the underlying collection to issue a database query or to submit some code to the GPU for processing.
And LINQ is an instance where static typing really shines.
(-) there are some god-awful DSLs available for Scala ; the presence of a macros system would allow the reuse of syntax instead of coming up with operators that look like random noise
(-) LINQ becomes possible - I don't know how many people here used LINQ, but it's really awesome to express a query in terms of filter, map and flatMap, and depending on the underlying collection to issue a database query or to submit some code to the GPU for processing.
And LINQ is an instance where static typing really shines.