ispc / ispc/ispc

Request: auto keyword for basic type deduction

Open
#2,310 0 comments 0 reactions 0 assignees View on GitHub
C/C++ Compatibility Frontend / Parser
Dominant language
C++
Stars
3k
Forks
352
PR merge metrics
No merged PRs in 30d

Description

Since ISPC has function overloading, automatic type deduction by function return type would be useful.
It would be a simple way to allow for basic generic programming and could potentially simplify some codebases.

To keep things predictable, it could require writing the uniform/varying qualifier if required, for example:

`uniform auto gatherIterator = GetIterator(variableOfSomeStructType);`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.