mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 08:00:13 +01:00
Mark fnty as __Fn to reflect experimental state (#928)
The `__Fn` naming is intended to mirror things like `__Continuation`. The reason for this path is because it's not clear this is the form we'll want, and I think experimental naming will help reflect that.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
package ExecutableSemanticsTest api;
|
||||
|
||||
fn apply[T:! Type, U:! Type](f: fnty (T) -> U, x: T) -> U {
|
||||
fn apply[T:! Type, U:! Type](f: __Fn (T) -> U, x: T) -> U {
|
||||
return f(x);
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
package ExecutableSemanticsTest api;
|
||||
|
||||
fn map[T:! Type](f: fnty (T) -> T, tuple: (T, T)) -> (T, T) {
|
||||
fn map[T:! Type](f: __Fn (T) -> T, tuple: (T, T)) -> (T, T) {
|
||||
return (f(tuple[0]), f(tuple[1]));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user