Better HN
topnewbestaskshowjobs
Log inSign up

baconserker

16 karma · joined Oct 23, 2010 (16y ago) · 6 submissions

Submissions

comment 14y ago · link · parent

For those curious about what Scala macros actually are: "This facility allows programmers to write macro defs: functions that are transparently loaded by the compiler and executed during compilation. This realizes the notion of compile-time metaprogramming for Scala." http://bit.ly/zeMjOb

http://scalamacros.org/usecases/index.html

comment 14y ago · link · parent

The author doesn't even know what macros are: "I understand macros to provide two things (1) forced code in-lining and (2) a kind of non-strict semantics or lazy evaluation of arguments"

comment 15y ago · link · parent

Boom - it wasn't serious! It was meant to spark discussion on how on earth do these cars handle trickier aspects of driving on unmodified grids, such as traffic lights.

comment 15y ago · link · parent

Does Nevada have stop lights?

comment 15y ago · link · parent

It required a small language change, which I believe you can see in it's entirety here: https://lampsvn.epfl.ch/trac/scala/changeset/23993

6.

Scala's Option will save you from the most common cause of NullPointerException(squirrelsewer.blogspot.com ↗)

2 points · by baconserker · 16y ago · discuss