DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
Optional attributes would be passed with var-arg parameters at the end.
| Code Block |
|---|
// simple Falltype case lalala = readOptionalField("lalala", dataReaderUnsignedInt( ....), something == true) // Enum Falltype case // TODO: chris magic trick is to use the function pointer of the enum parse static method lalala = readOptionalField("lalala", enumReader(TypeOfHurz::enumForValue, dataReaderUnsignedIntCreatorDingels( ... readBuffer ....)), something == true, withAdditonasdl(), withEncoding(), withFickiciy()) // Complex type Fallcase // TODO: chris magic trick is to use a supplier lambda for the staticParse lalala = readOptionalField("lalala", complexTypeReader(()->TypeOfHurz.staticParseIwas(readBuffer, asdasdasdasd, asdasd), readBuffer), something == true) |
Cleaning up the way params are passed to types
In General we decided to replace the square bracets around the passing of parameters from one type to the other with round bracets. This makes the syntax a bit more similar to normal programming languages.
We also moved the place where params are passed from the end to directly after the complex type name.