Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 24 16:35
    rom1504 commented #97
  • Aug 24 16:33

    rom1504 on master

    Release 1.6.10 (compare)

  • Aug 24 16:31

    rom1504 on master

    add gitpod and fix gitmodules (compare)

  • Aug 24 16:29
    rom1504 closed #65
  • Aug 24 16:29
    rom1504 commented #65
  • Aug 24 16:28
    rom1504 closed #53
  • Aug 24 16:28
    rom1504 commented #53
  • Aug 24 16:28
    rom1504 closed #52
  • Aug 24 16:28
    rom1504 commented #52
  • Aug 24 16:27
    rom1504 closed #51
  • Aug 24 16:27
    rom1504 commented #51
  • Aug 24 16:26

    rom1504 on master

    Fixed issue #97 Merge pull request #97 from mrc… (compare)

  • Aug 24 16:26
    rom1504 closed #97
  • Aug 24 15:58
    mrcrille commented #97
  • Aug 24 15:23
    mrcrille commented #97
  • Aug 24 15:20
    mrcrille commented #97
  • Aug 24 15:18
    mrcrille opened #97
  • Aug 24 15:11
    rom1504 commented #97
  • Aug 24 15:06
    mrcrille opened #97
  • Mar 12 10:08
    SuperOP535 closed #92
Hans Elias J.
@hansihe
chibill: that's exactly what unions do here though
Robin Lambertz
@roblabla
Specifically, we're a tagged union.
Hans Elias J.
@hansihe
besides, calling them enums might confuse people who code java or rust
mhsjlw
@mhsjlw
^
Robin Lambertz
@roblabla
@hansihe well, they are pretty close to rust enums :P
Hans Elias J.
@hansihe
calling them sum types might confuse mathematicians
Robin Lambertz
@roblabla
And calling them switch might confuse old protodef users
:O
William Gaylord
@wgaylord
its not an enum or union its a switch...... as it just maps a value to a type..
thats all it does.
Hans Elias J.
@hansihe
it represents a "tagged union"
Robin Lambertz
@roblabla
^
William Gaylord
@wgaylord
unions reference the same data both ways at the same time... your union represents data in a way depending on what it is.
Robin Lambertz
@roblabla
oh wait. That link has too much maths on it
@chibill Yup. And that's called a tagged union
here shortened "Union"
mhsjlw
@mhsjlw
aside : i think this is fucking awesome compared to protodef's switch
William Gaylord
@wgaylord
what ever.
mhsjlw
@mhsjlw
fields obviously have to be in order, right ?
Robin Lambertz
@roblabla
yup
mhsjlw
@mhsjlw
@chibill we want your feedback, what do you suggest ?
Hans Elias J.
@hansihe
that's the mathematically correct naming
mhsjlw
@mhsjlw
with the constructive criticism that we've explained
William Gaylord
@wgaylord
Also one problem... having two types like one of the things has won't work....
Hans Elias J.
@hansihe
right, yeah
William Gaylord
@wgaylord
And what does prop mean?
Hans Elias J.
@hansihe
that's because I changed the format on the spot, it is not decided yet
Robin Lambertz
@roblabla
I think, it was supposed to be ["virtual", { ref, data, type }]
Right ?
William Gaylord
@wgaylord
if prop means property what does that mean in this case.
Hans Elias J.
@hansihe
prop is a (standardized) way to access a property of another field
Robin Lambertz
@roblabla
prop is the type of reference the virtual is
Hans Elias J.
@hansihe
in this case the "tag" field of the union
so what happens is
Robin Lambertz
@roblabla
(tag, count, ???)
Hans Elias J.
@hansihe
when writing the type out
the virtual field will get it's value from the tag of the union
William Gaylord
@wgaylord
so I will rest my case you your making the Json its own thing that will take a while to learn.
Hans Elias J.
@hansihe
when reading the type, the union will get its value from the virtual field
Robin Lambertz
@roblabla
erm, I meant { ref, prop, type } up there
@chibill we're adding new concepts to protodef. It's obvious that will go in the JSON as well.
William Gaylord
@wgaylord
also you seem to be making the JSON files bigger with out adding anything new to them. Just changing how they work....
Robin Lambertz
@roblabla
The whole idea of the JSON is that it's easier to work with because you don't have to write your own parser and w/e
Hans Elias J.
@hansihe
chibill: what I did was remove hacks that only worked for some special cases and replaced them with more general and expandable mechanisms
case in point, mapper and switch
William Gaylord
@wgaylord
I have no idea why mapper ever existed when you could have just used a switch to do that same job...
Hans Elias J.
@hansihe
both of which were relatively specific, only used in some cases, interacted with each other in a complex way
you can't