Back

Could not find How to access Variables in openruntimes/swift:v3-5.5

  • 0
  • Functions
Binyamin
21 Aug, 2023, 12:51

In what example?

TL;DR
The user encountered an issue with accessing variables in openruntimes/swift:v3-5.5. They provided a link to a pull request on GitHub and requested a review. The issue was reopened and they asked for the link to the issue. They mentioned that their Hacktoberfest 2022 issue was closed and asked for assistance in reopening it. They thanked someone for their support. They discussed creating a function for version 3 and waiting for version 4 to be released. There was a mention of a new signature for version 4 of functions, but it is not available yet. The user shared links to examples in Swift
darkcheftar
21 Aug, 2023, 12:52

swift 5.5

darkcheftar
21 Aug, 2023, 12:53
TypeScript
func main(req: RequestValue, res: RequestResponse) -> RequestResponse
Binyamin
21 Aug, 2023, 12:53

I haven't develop in Swift for years But this one and this

Binyamin
21 Aug, 2023, 12:53

Look the same

Binyamin
21 Aug, 2023, 12:54

Except one is async and throws

Binyamin
21 Aug, 2023, 12:54

They will work the same

darkcheftar
21 Aug, 2023, 12:55

yes, they are same, but they are swift-v2-5.5

darkcheftar
21 Aug, 2023, 12:55

recent version swift-v3-5.5 the signature is from https://github.com/open-runtimes/open-runtimes/blob/main/runtimes/swift-5.5/Sources/Runtime/main.swift

TypeScript
func main(context: RuntimeContext) async throws -> RuntimeOutput
Binyamin
21 Aug, 2023, 12:56

Ohh the functions in that repo are got update recently

darkcheftar
21 Aug, 2023, 12:56

yup

Binyamin
21 Aug, 2023, 12:56

This new signature is for g4 of functions which isn't available yet.

Binyamin
21 Aug, 2023, 12:57

All the examples shows the version 3

darkcheftar
21 Aug, 2023, 12:57

Oh!, got it

Binyamin
21 Aug, 2023, 12:57

Maybe in this case - it will need to be approved by some Appwrite <:appwrite:637383039499894787> member - it might be best:

  • Wait for version 4 to be released
  • Create the function for version 3
darkcheftar
21 Aug, 2023, 12:58

Ok, will create for version 3

darkcheftar
21 Aug, 2023, 12:58

when version 4 comes I might update it accordingly

Binyamin
21 Aug, 2023, 12:58

Sounds good to me

darkcheftar
21 Aug, 2023, 12:58

thanks, for the suppor @Binyamin

darkcheftar
25 Aug, 2023, 13:18

Hey I was working on the issue but all the hacktoberfest 2022 issues are close mine is one of em, whom should i contact for it to be reopened?

joeyouss
25 Aug, 2023, 14:13

Can you send me the link of issue ?

darkcheftar
25 Aug, 2023, 15:22
Eldad
25 Aug, 2023, 15:43

reopened

darkcheftar
30 Aug, 2023, 11:40

Hey done with it, Could someone please review it?

darkcheftar
30 Aug, 2023, 11:41
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more