mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-14 14:58:58 +00: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:
1 parent
89a829b8c7
commit
eeff5dcdae
5 files changed
+7
-7
No files matched your search
@@ -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