#microformats 2018-09-20

2018-09-20 UTC
tantek__, selfsymmetric-mu, tantek and keywordNew joined the channel
#
@V_pas
Помню, на зарубежной литературе стишок Байрона про Мазепу читал :) https://was.media/microformats/golyj-mazepa/
(twitter.com/_/status/1042607881839935488)
dougbeal|mb1, tantek__, nitot, [arnefismen], ilmari27, mibo19, KartikPrabhu, digital28, [jgmac1106], indy, [kevinmarks], pabelanger24, barpthewire, jssjr7, [manton], Tristam1, aalm8, [pfefferle], Guest10564, jackjamieson, [AkyRhO], [tantek], Guest54152, tables3, chansen_, Alexendoo19, tantek, t0mab12 and tykeal10 joined the channel
#
gRegorLove
parsed property names should appear in document order, correct?
[kevinmarks] joined the channel
#
[kevinmarks]
Not quite sure what you mean
#
[kevinmarks]
If they're items in an object then order is not preserved
#
[kevinmarks]
Well, it's preserved in PHP, but that's an anomaly
#
KartikPrabhu
mf2 objects do not have order to their properties
[jgmac1106], cjohnson29 and jackjamieson joined the channel
#
gRegorLove
I asked because Go parser is sorting them alphabetically. The parsing spec seems to indicate they get added as they're parsed, so would appear in the same order as they are in the document.
#
gRegorLove
Python preserves the order as well
#
sknebel
there is no order in the data type
#
gRegorLove
Understood, but should there be a direction to parser implementations not to sort alphabetically?
#
sknebel
it's equally valid output, and it makes no sense to force the go parser to do weird stuff just to produce a non-alphabetical output
#
gRegorLove
Fair. I didn't check, but I thought Go might be adding a step to sort them
#
sknebel
as far as I know, that is standard behavior of go's json serializer
#
sknebel
mf2py output probably depends on the python version
#
sknebel
since python's dict datatype only recently became ordered by default
[schmarty], lupine8, dougbeal|mb1, subdriven24 and [kevinmarks] joined the channel
#
[kevinmarks]
Go's dict datatype randomises order
joink27, jackjamieson, [schmarty], [manton], bart_24, rubick22, tantek, lag9 and [kevinmarks] joined the channel