You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
package main
import (
"fmt"
)
type Foo = string
type Bar = string
func demo(b Bar) {
fmt.Printf("i'm happy to have receiver a bar: %v\n", b)
}
func main() {
var f Foo = "i'm a foo"
demo(f)
}
The type safety point is great indeed, I didn't think much when I did this first piece, just needed to get something out quickly at first :) Thanks for bringing me there. Working on an update...
I am wondering if this makes sense. If a FlowNode refers to a SequenceFlow in a different namespace, is the IDREF reference declared there in that namespace or the original one? Something to think about the intention of this type discrepancy here.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://github.com/bpxe/bpxe/blob/0828554a14ebbdc2c38b7564443c0036b0f05ab0/pkg/bpmn/schema.go#L19-L29
This lets callers intermingle the types freely, removing any benefit of using the types. Should use
and so on.
https://play.golang.org/p/k8vgBkqdmwr
Also, ID not Id: https://github.com/golang/go/wiki/CodeReviewComments#initialisms
The text was updated successfully, but these errors were encountered: