joajfreitas / fcp-core

MIT License
6 stars 1 forks source link

Change the extension syntax #74

Closed joajfreitas closed 1 month ago

joajfreitas commented 1 month ago

We will now use:

impl protocol for Struct {
    ...
}

Before the extension block started with an identifier, basically any word would fit. This meant that typos on high level blocks issued a very confusing error messaged about how the syntax for an extend block was wrong, even when the typo was on a struct or enum.

Another possible advantage is that now there's no different names for the extension and its type. They will always be the same, hopefully this will mean less confusion when debugging message definitions.

resolves #65