You have binary #b101010, octal #o52, decimal #d42, hex #h2a
and
finally #12r36 (#r allows any base). It is (very briefly) documented
in doc/user_guide.txt.
And there is always the code in
src/lfe_scan.xrl. :-)
I see now that I just fail miserably if the bas
in #r is not 1-36, will fix that in a future release.
There is documentation, though not always that much. Are you a lisper?
I don't know how good a way this to learn Erlang though 'cos most
literature/documentation uses the vanilla Erlang syntax.
But I will
help.
Robert
On 30 January 2013 09:06, <dun...@cogitat.io> wrote:
> Hey all,
>
> I'm new to LFE (and have never more than played with Erlang in the past), so
> I probably will be full of questions like this one for a while ;-)
>
> But for now: what is the lfe equivalent for 2#101010. ?
>
> (And, had I known, where would I have gone in the source code to discover
> the answer to that?)
>
> Thanks so much!
>
> d
--
You received this message because you are subscribed to the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
Visit this group at http://groups.google.com/group/lisp-flavoured-erlang?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
One quick comment about LFE is that it is a lisp that is VERY tuned to Erlang so it has/lacks things common in "normal" lisps. For example
- No mutable data and variables. At all! So no setq, set or any set-?? functions
(let ((<pattern> <value>)
- Very heavy use of pattern matching, everywhere. For example let has patterns:
(<pattern> <value>))
...)
- There is a record "type" which is exactly the same as vanilla Erlang records, i.e. disguised tagged tuples.
- There are no user defined data types.
Robert
On Wednesday, January 30, 2013 3:06:31 PM UTC+1, rvirding wrote:You have binary #b101010, octal #o52, decimal #d42, hex #h2a and
finally #12r36 (#r allows any base). It is (very briefly) documented
in doc/user_guide.txt. And there is always the code in
src/lfe_scan.xrl. :-) I see now that I just fail miserably if the bas
in #r is not 1-36, will fix that in a future release.
There is documentation, though not always that much. Are you a lisper?
I don't know how good a way this to learn Erlang though 'cos most
literature/documentation uses the vanilla Erlang syntax. But I will
help.
Robert