@realpastaya@razzy_ar@neogoose_btw It isn’t doing anything in there done it’s binding all names to _. I think it is just being used to *show* what elements must be handled by the code below. It would be better if said code referred to the restructured names instead of self.<name>, tho
@realpastaya@razzy_ar@neogoose_btw I’ve seen this idiom to make sure you’re exhaustively using all elements of a struct. I mean, if a new field gets added in the future, that line would stop compiling.
@realpastaya@razzy_ar@neogoose_btw I’ve seen this idiom to make sure you’re exhaustively using all elements of a struct. I mean, if a new field gets added in the future, that line would stop compiling.
@flipbit03 É pra fazer um pretty printer, precisei modificar o parser e a AST pra armazenar os comentários e line breaks tb
Foi meio chatinho pq eles podem aparecer em qualquer lugar
@esquizioto eu sinceramente nao entendi o que vc tá querendo dizer com essa analogia de notação (até onde eu sei, toda linguagem é uma notação). mas talvez eu só esteja cansado.
se quiser continuar a discutir com mais calma, me add no discord e a gnt continua por lá
@esquizioto É uma boa pergunta, mas a distância entre a expressividade do type system e da semântica operacional de Rust a C é *bem* maior que a distância entre C a Assembly