jafingerhut / p4-namespaces

A public repo for discussion of adding namespaces to the P4 programming language
Apache License 2.0
5 stars 0 forks source link

Should it be possible to import only a subset of top level things with identical names? #8

Open jafingerhut opened 2 years ago

jafingerhut commented 2 years ago

For example, one can define multiple extern functions, or P4 functions, with the same name but different signatures, e.g. different numbers of parameters.

Should it be possible to import only some of those definitions?

If so, what syntax would you propose to do so?

If we simply restrict this proposal to say "either you import all definitions with the same name, or none of them", then there is no need to answer this question.

mihaibudiu commented 2 years ago

Let's keep it simple to get started.