Skip to content

Conversation

@jahav
Copy link
Contributor

@jahav jahav commented Sep 4, 2024

Followup to #211 (comment).

I have made a new convention for API usages in Consume project, added it to contributing.md and modified Consume.cs according to the new convention.

Generally speaking, because Consume project is there only to check API compiles in old runtimes (net461 ect.), I think shorter code is preferable. The PR therefore puts method calls to method-per-type in a class (e.g. Span_Methods or Int_Methods). I am using suffix to avoid naming issues where method and type have same name.

This is a preparation commit for a new convention in Consume.cs. New
convention will use sorted methods, so take all methods in the class
and sort it.

Also move all "language features" (i.e. everything that isn't obvious method call) to one place, at the top.
The change has moved methods from constructor to individual methods.
New convention says usage shoudl be demonstrated in a method with name
of a type plus suffix `_Methods`.
@jahav jahav changed the title Consume project New convention for Consume project Sep 4, 2024
@SimonCropp
Copy link
Owner

looks great. thanks

@SimonCropp SimonCropp merged commit c9d7aec into SimonCropp:main Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants