René's URL Explorer Experiment


Title: Define Syntax for Iterator Definition · Issue #154 · ZenCodeLang/ZenCode · GitHub

Open Graph Title: Define Syntax for Iterator Definition · Issue #154 · ZenCodeLang/ZenCode

X Title: Define Syntax for Iterator Definition · Issue #154 · ZenCodeLang/ZenCode

Description: Currently, StdLib's Iterable.zs defines the Iterator-Member like so: for(item as T) as Iterator => iterate(); However, the parser expects: for(T) { // What to do in here? } Defined in ParsedDefinitionMember: case K_FOR: { tokens.next(...

Open Graph Description: Currently, StdLib's Iterable.zs defines the Iterator-Member like so: for(item as T) as Iterator => iterate(); However, the parser expects: for(T) { // What to do in here? } Defined in ParsedDefi...

X Description: Currently, StdLib's Iterable.zs defines the Iterator-Member like so: for(item as T) as Iterator<T> => iterate(); However, the parser expects: for(T) { // What to do in here? } Defined ...

Opengraph URL: https://github.com/ZenCodeLang/ZenCode/issues/154

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Define Syntax for Iterator Definition","articleBody":"Currently, StdLib's [Iterable.zs](https://github.com/ZenCodeLang/StdLibs/blob/master/src/main/zencode/stdlib/src/Iterable.zs) defines the Iterator-Member like so:\n\n```zs\nfor(item as T) as Iterator\u003cT\u003e =\u003e iterate();\n```\n\nHowever, the parser expects:\n```zs\nfor(T) {\n    // What to do in here?\n}\n```\n\nDefined in ParsedDefinitionMember:\n```java\n\t\t\tcase K_FOR: {\n\t\t\t\ttokens.next();\n\n\t\t\t\ttokens.required(T_BROPEN, \"( expected\");\n\n\t\t\t\tList\u003cIParsedType\u003e loopVariableTypes = new ArrayList\u003c\u003e();\n\t\t\t\tif (tokens.optional(T_BRCLOSE) == null) {\n\t\t\t\t\tdo {\n\t\t\t\t\t\tloopVariableTypes.add(IParsedType.parse(tokens));\n\t\t\t\t\t} while (tokens.optional(T_COMMA) != null);\n\t\t\t\t\ttokens.required(T_BRCLOSE, \") expected\");\n\t\t\t\t}\n\n\t\t\t\tParsedFunctionBody body = ParsedStatement.parseFunctionBody(tokens);\n\t\t\t\treturn new ParsedIterator(start, modifiers, annotations, loopVariableTypes, body);\n\t\t\t}\n```\n\nWe need to define how the iterator members should look like and how it should behave.\n\nAcceptance Criteria:\n- [ ] The syntax is defined\n- [ ] The header in stdlibs is adapted to whatever syntax we adopt\n- [ ] There exist tests that cover the basic iterator functionality\n  - [ ] Defining an iterator\n  - [ ] Calling it\n  - [ ] Overloading iterators with multiple variables\n  - [ ] Doing that on a generic data type like List\u003cT\u003e","author":{"url":"https://github.com/kindlich","@type":"Person","name":"kindlich"},"datePublished":"2024-06-08T18:03:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/154/ZenCode/issues/154"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2403450c-7d6e-fb75-169e-2692ffc41d75
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAE94:5FBC2:12B3798:1791BC0:6991706E
html-safe-nonceeea88a34478d12190ed365768696cac46a324d5f3c13b0378307324001ee73f2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTk0OjVGQkMyOjEyQjM3OTg6MTc5MUJDMDo2OTkxNzA2RSIsInZpc2l0b3JfaWQiOiIyMTU4MTY5ODk3NzcwNzc0NjM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfcd901a6da303cbd9f8ac950e6de3c79574af359ac55c9035b5e1c530eb50421
hovercard-subject-tagissue:2341765384
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ZenCodeLang/ZenCode/154/issue_layout
twitter:imagehttps://opengraph.githubassets.com/eaff989772850648612220f08993f2c3a87af845f80376169ce7c5d2d2168c98/ZenCodeLang/ZenCode/issues/154
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eaff989772850648612220f08993f2c3a87af845f80376169ce7c5d2d2168c98/ZenCodeLang/ZenCode/issues/154
og:image:altCurrently, StdLib's Iterable.zs defines the Iterator-Member like so: for(item as T) as Iterator => iterate(); However, the parser expects: for(T) { // What to do in here? } Defined in ParsedDefi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekindlich
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/ZenCodeLang/ZenCode git https://github.com/ZenCodeLang/ZenCode.git
octolytics-dimension-user_id68248418
octolytics-dimension-user_loginZenCodeLang
octolytics-dimension-repository_id309683985
octolytics-dimension-repository_nwoZenCodeLang/ZenCode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id309683985
octolytics-dimension-repository_network_root_nwoZenCodeLang/ZenCode
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues/154#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FZenCodeLang%2FZenCode%2Fissues%2F154
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FZenCodeLang%2FZenCode%2Fissues%2F154
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ZenCodeLang%2FZenCode
Reloadhttps://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues/154
Reloadhttps://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues/154
Reloadhttps://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues/154
ZenCodeLang https://patch-diff.githubusercontent.com/ZenCodeLang
ZenCodehttps://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FZenCodeLang%2FZenCode
Fork 8 https://patch-diff.githubusercontent.com/login?return_to=%2FZenCodeLang%2FZenCode
Star 14 https://patch-diff.githubusercontent.com/login?return_to=%2FZenCodeLang%2FZenCode
Code https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode
Issues 36 https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues
Pull requests 0 https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/pulls
Actions https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/actions
Projects 0 https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/projects
Security 0 https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/security
Insights https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/pulse
Code https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode
Issues https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues
Pull requests https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/pulls
Actions https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/actions
Projects https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/projects
Security https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/security
Insights https://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ZenCodeLang/ZenCode/issues/154
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ZenCodeLang/ZenCode/issues/154
Define Syntax for Iterator Definitionhttps://patch-diff.githubusercontent.com/ZenCodeLang/ZenCode/issues/154#top
bugSomething isn't workinghttps://github.com/ZenCodeLang/ZenCode/issues?q=state%3Aopen%20label%3A%22bug%22
documentationImprovements or additions to documentationhttps://github.com/ZenCodeLang/ZenCode/issues?q=state%3Aopen%20label%3A%22documentation%22
parserhttps://github.com/ZenCodeLang/ZenCode/issues?q=state%3Aopen%20label%3A%22parser%22
v1.0.0https://github.com/ZenCodeLang/ZenCode/milestone/2
https://github.com/kindlich
https://github.com/kindlich
kindlichhttps://github.com/kindlich
on Jun 8, 2024https://github.com/ZenCodeLang/ZenCode/issues/154#issue-2341765384
Iterable.zshttps://github.com/ZenCodeLang/StdLibs/blob/master/src/main/zencode/stdlib/src/Iterable.zs
bugSomething isn't workinghttps://github.com/ZenCodeLang/ZenCode/issues?q=state%3Aopen%20label%3A%22bug%22
documentationImprovements or additions to documentationhttps://github.com/ZenCodeLang/ZenCode/issues?q=state%3Aopen%20label%3A%22documentation%22
parserhttps://github.com/ZenCodeLang/ZenCode/issues?q=state%3Aopen%20label%3A%22parser%22
v1.0.0No due datehttps://github.com/ZenCodeLang/ZenCode/milestone/2
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.