Erik Svedäng
Erik Svedäng
I think adding dynamic maps (using the existing `{ key value, key value }` syntax would be a nice and not overly hard thing to do. Obviously it should replicate...
Somewhat related to https://github.com/carp-lang/Carp/issues/1347#issuecomment-1003168056, the `c` command (defined in Eval.hs, function `commandC` on line 975) spits out a lot of errors if a definition generates generic functions as dependencies. Example:...
This makes `(fn [...] ...)` change type from `(Fn [...] ...)` to `(Ref (Fn [...] ...)`, making it possible to avoid any dynamic memory allocations (`malloc`) unless the lambda has...
Welcome to Carp 0.5.3 This is free software with ABSOLUTELY NO WARRANTY. Evaluate (help) for more information. 鲤 (defmodule Hello (defn hello [] @"Hello")) 鲤 (hello) Can't find symbol 'hello'...
Specifically the one for `mod`, but seems like it goes for the others too? See https://github.com/carp-lang/Carp/pull/1327
To reproduce: ``` > (def g (comp Int.inc Int.inc)) > (g 10) ```
This code: ```clojure (defn f [] ()) (def funs [f]) (defn main [] (let [i 0] (match (Array.nth &funs i) (Just fun) (fun) Nothing (println* "No function found at index...
## How the Carp lifetimes work right now 1. Lifetime variables are unified just like type variables, see https://github.com/carp-lang/Carp/blob/5a449b09191594111b8792cc74d6183c55f498f4/src/Constraints.hs#L158 2. When analyzing the memory management code, when something has a...
Possibly related to https://github.com/carp-lang/Carp/issues/1222 Exampel session: ``` 鲤 (println* "hello") 鲤 ``` (using the macro from a `defn` works) This is slightly different from for example: ``` 鲤 (defmacro m...