Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement inlineimport #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

iK4tsu
Copy link
Contributor

@iK4tsu iK4tsu commented Jun 13, 2021

Achieves a lazier import style.

Features:

  • import and use inline
  • works with betterC
  • custom error messages for better debugging

from:

Allows for a sequential import style with no extra syntax:

assert(from.std.algorithm.equals(from.std.algorithm.map!"a*a"([1, 2]), [2, 4]));

From:

Same as from, however it adds the ability to set the starting point of the module to check. Useful for betterC to bypass import std checks for example or to import core:

assert(From!"std.math".abs(-1) == 1);

I'm not sure about the naming of this feature inline import. Naming ideas are welcome.

@iK4tsu iK4tsu added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Jun 13, 2021
@iK4tsu iK4tsu requested a review from ljmf00 June 13, 2021 11:45
@iK4tsu iK4tsu force-pushed the feature-inline-import branch from 26e7c0b to 85ad100 Compare June 13, 2021 11:47
iK4tsu added 2 commits June 13, 2021 22:00
Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
Signed-off-by: João Lourenço <jlourenco5691@gmail.com>
@iK4tsu iK4tsu force-pushed the feature-inline-import branch from 85ad100 to 88d01bc Compare June 13, 2021 21:02
@iK4tsu iK4tsu marked this pull request as ready for review June 13, 2021 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant