---
title: "Comment by Mazdak Farrokhzad on \"Semantic FFI Bindings in Rust -\nReactivating the Borrow Checker\" | Hashnode"
description: "I just came up with the name [...] &quot;Higher-ranked type alias&quot; isn&#39;t entirely right here, but its good to think about the type theory. What you hav"
url: "https://hashnode.com/posts/semantic-ffi-bindings-in-rust-reactivating-the-borrow-checker/5f9d7e7fb309125fbb61a4c0/comment/5fa51e0747631a19e811ff67"
---

[Discussion](https://hashnode.com/posts/semantic-ffi-bindings-in-rust-reactivating-the-borrow-checker/5f9d7e7fb309125fbb61a4c0)

Comment [Semantic FFI Bindings in Rust - Reactivating the Borrow Checker](https://hashnode.com/posts/semantic-ffi-bindings-in-rust-reactivating-the-borrow-checker/5f9d7e7fb309125fbb61a4c0)

[Mazdak Farrokhzad](https://hashnode.com/@centril)

[Nov 6, 2020](https://hashnode.com/posts/semantic-ffi-bindings-in-rust-reactivating-the-borrow-checker/5f9d7e7fb309125fbb61a4c0/comment/5fa51e0747631a19e811ff67)

> I just came up with the name \[...\]

"Higher-ranked type alias" isn't entirely right here, but its good to think about the type theory. What you have on RHS is a prenex (rank-0) polymorphic type, and the type alias itself is still in prenex form. You would need e.g., `for<'a> fn(fn(&'a u8))` to have a rank-1 type, which would indeed be higher ranked.

[Tamme Schichler](https://hashnode.com/@Tamme)

[Nov 6, 2020](https://hashnode.com/posts/semantic-ffi-bindings-in-rust-reactivating-the-borrow-checker/5f9d7e7fb309125fbb61a4c0/comment/5fa51e0747631a19e811ff67#reply-5fa544b847631a19e8120228)

Thank you, this gave me enough pointers [to look the terms up properly](https://en.wikipedia.org/w/index.php?title=Parametric_polymorphism&oldid=984123256).

I've (hopefully) corrected the post in this regard, by switching from "higher-ranked type alias" to "type alias to a polymorphic function pointer type". The changeset can be seen [here](https://github.com/Tamschi/Abstraction-Haven-Backup/commit/f694c830a55a002cf9e5629baf565599a62315c5).

[Mazdak Farrokhzad](https://hashnode.com/@centril)

[Nov 6, 2020](https://hashnode.com/posts/semantic-ffi-bindings-in-rust-reactivating-the-borrow-checker/5f9d7e7fb309125fbb61a4c0/comment/5fa51e0747631a19e811ff67#reply-5fa55d3d54cc5b4ad931df00)

Sure thing! Your correction looks spot on to me.
