adl
adl copied to clipboard
ADL (Algebraic Data Language)
Given this ADL: ``` module test { import sys.types.Map; struct Test { Map foo = []; }; }; ``` generated c++ code will have: ``` Test::Test() : foo(std::map (mkvec())) {...
ghc `-fwarn-incomplete-patterns`
Inconsistency can cause name resolution to fail
The generated data types are intended to be used in two different ways: 1. External data that is received and parsed into the data structure 2. A data structure is...
This is probably most relevant for the Haskell generator, but maybe could be interesting for other languages. In Haskell there are many different styles for defining records: - Prefixed or...
ADL accepts and generates code for this declaration as expected: ``` struct X { X x; }; ``` but, unfortunately, adding a default sends the compiler into an infinite loop:...