Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The whitesapce thing #25

Closed
vrotaru opened this issue Sep 27, 2013 · 4 comments
Closed

The whitesapce thing #25

vrotaru opened this issue Sep 27, 2013 · 4 comments
Labels

Comments

@vrotaru
Copy link

vrotaru commented Sep 27, 2013

On the example there is extra space between the arguments. It it rather unexpected.

~follen-tacneb-miswed-folhes--boslyr-havwet-tacdux-roptud/try=> (add 2 2)
4
~follen-tacneb-miswed-folhes--boslyr-havwet-tacdux-roptud/try=> (add 2  2)
~ <syntax error at [1 8]>
~follen-tacneb-miswed-folhes--boslyr-havwet-tacdux-roptud/try=> 
@johncburnham
Copy link
Contributor

Which example?

@courajs
Copy link

courajs commented Oct 5, 2013

This has gotta be in crash course in arvo, 1.2, right?
~waclux-tomwyc/try=> (add 2 2)
If so, it's fixed now.

@ericfode
Copy link
Contributor

ericfode commented Nov 5, 2013

@vrotaru what you have noticed is a syntax constraint that is not necessary but enforced by hoon. When ever possible we try to encode how hoon code should be written al a go. Double spaces should be used to denote sub hoons, for example:

|= [p=@]
^- ,[p=@]

Could be written as

|= [p=@]  ^- ,[p=@]

@vrotaru
Copy link
Author

vrotaru commented Nov 5, 2013

Thanks. I've started to guess it after observing that same is true in other contexts.

It is unusual, but that's to be expected with Martian tech.:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants