Yeah!
Thank you :) !

Matt Bauman於 2015年3月16日星期一 UTC+8下午11時59分33秒寫道:
>
> When macros are called with parentheses (instead of spaces), they are 
> parsed like a function - which includes keyword arguments.  I think your 
> macro is working just fine, it's just the invocation that's tricky.  Try:
>
> # "Hide" the assignment in a begin block
> julia> @awhen([1, 2, 3], begin x = 1; end, it[x])
> 1
>
> # Or use the space syntax
> julia> @awhen [1, 2, 3] x = 1 it[x]
> 1
>
>
> On Monday, March 16, 2015 at 11:10:21 AM UTC-4, Miao Yang wrote:
>>
>> Thanks!
>>
>> The "match.jl" looks really cool, I hope I can read it!
>>
>> Isaiah於 2015年3月16日星期一 UTC+8下午9時40分27秒寫道:
>>>
>>> Look at match.jl for an example similar to be what you want to do.
>>> On Mar 16, 2015 1:21 AM, "Miao Yang" <[email protected]> wrote:
>>>
>>>> Need something like Clojure "~@" unquote-splice?
>>>>
>>>>

Reply via email to