Hacker News new | ask | show | jobs
by azhenley 2010 days ago
It looks like an interesting project. The syntax for pointers is what grabbed my attention at first. Would really need to spend some time with this to know how it would work in practice.

    const char* myString = "Blah";
    (var my-string (* (const char)) "Blah")
1 comments

Thanks! It is a bit different, and does require more typing, but I like how unambiguous it is. It also simplifies code modification by making type parsing and changing easier, because you can recursively unwrap multiple pointers, or pointer-ify things easily.
Have you looked at newlisp? It has pretty seamless interop with C pointers.
Looks fantastic. Does it handle typedefs too? So one could write

   (var my-string conststring "Blah")
with the appropriate typedef.
Yes! You can typedef types and function signatures.