You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, this requires disambiguating classes with only naming, which can lead to very long class names with more deeply nested structures. This code today must look like this:
class MyA {
properties: MyAProperties
}
class MyAProperties {
prop1: String
}
class MyB {
properties: MyBProperties
}
class MyBProperties {
prop2: String
}
aProps: MyAProperties
The text was updated successfully, but these errors were encountered:
My motivation for opening this is actually described exactly in apple/pkl-pantry#40
This is definitely something I'd discourage in normal use of Pkl, but when used as a tool for disambiguating identically named types without manual name mangling—particularly in conjunction with Pkl code generation—I think this stands to be really valuable.
Also, I think could play a role in a potential non-trivial user generics implementation that may need to consider associated types (like Swift), which would motivate allowing typealias in these same contexts.
I'd like to be able to do something like this:
Currently, this requires disambiguating classes with only naming, which can lead to very long class names with more deeply nested structures. This code today must look like this:
The text was updated successfully, but these errors were encountered: