rebcabin / masr

Meta ASR: replacement for aging ASDL
MIT License
4 stars 0 forks source link

What's the difference between `arg_types` and `type_params` in `FunctionType`? #27

Open rebcabin opened 1 year ago

rebcabin commented 1 year ago
;;     | FunctionType(ttype*  arg_types,       ;; rename param-types
;;                    ttype?  return_var_type,
;;                    abi     abi,
;;                    deftype deftype,
;;                    string? bindc_name,
;;                    bool    elemental,
;;                    bool    pure,
;;                    bool    module,
;;                    bool    inline,
;;                    bool    static,
;;                    ttype*  type_params,
;;                    symbol* restrictions,
;;                    bool    is_restriction)
certik commented 1 year ago

arg_types is things like integer, real, etc. type_params are template arguments (generics).

rebcabin commented 1 year ago

Reopening as reminder to me to implement