Mixing data(view)types and abstract(view)types

50 views
Skip to first unread message

Elliott Villars

unread,
Jan 22, 2023, 12:30:21 PM1/22/23
to ats-lang-users
Hello,

I am wondering if it possible to provide an implementation for an abstract type in C and be able to pattern match on it with type constructors? For example, say I implement an array-based binary tree, can I also bind Leaf and Tree constructors to it, basically keeping the C performance but making it look like an ATS datatype?
Also, is it possible to execute runtime code based on the result of a pattern match on a dataview?

-Elliott
Reply all
Reply to author
Forward
0 new messages